--- ------------------- VERIFICA TABELA -------------------- ----

SELECT * FROM LOJAS_NATUREZA_OPERACAO

--- --------------- DELETE CHAVES DUPLICADAS --------------- ----

DELETE FROM LOJAS_NATUREZA_OPERACAO WHERE TIMESTAMP IS NULL

--- ----------- CRIAR CHAVE PRIMARIA DA TABELA ------------- ----

ALTER TABLE dbo.LOJAS_NATUREZA_OPERACAO ADD CONSTRAINT
	PK_LOJAS_NATUREZA_OPERACAO PRIMARY KEY CLUSTERED 
	(
	NATUREZA_OPERACAO_CODIGO
	) ON [PRIMARY]

-----------------------------------------------------------------